package com.ruoyi.system.domain.vo;

import cn.hutool.core.collection.CollUtil;
import com.ruoyi.common.exception.GlobalException;
import lombok.Data;

import java.util.List;
import java.util.Objects;

/**
 * @Author: LiJunXi
 * @Description:
 * @Date: 2025-04-30  09:15
 */
@Data
public class SysHotelFeaturesReq {

    private Long hotelId;

    private List<Long> featuresIds;

    public void checkParams() {
        if (Objects.isNull(hotelId)) {
            throw new GlobalException("酒店ID为空");
        }
        if (CollUtil.isEmpty(featuresIds)) {
            throw new GlobalException("特色ID列表为空");
        }
    }
}
